<template>
    <div>


         <el-container>
    <el-aside width="200px">
        <el-row class="tac">
          <el-col :span="22">
    <el-menu
      default-active="/back"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose"
      background-color="#545c64"
      text-color="#fff"
      router
      active-text-color="#ffd04b">
        
        <el-menu-item index="/back">
        <i class="el-icon-setting"></i>
        <span slot="title">后台首页</span>
      </el-menu-item>

      <el-menu-item index="/photo">
        <i class="el-icon-menu"></i>
        <span slot="title">相册管理</span>
      </el-menu-item>
      <el-menu-item index="/goodsList" >
        <i class="el-icon-document"></i>
        <span slot="title">商品列表</span>
      </el-menu-item>
     
    </el-menu>
  </el-col>
</el-row>
    </el-aside>
    <el-main>
    <router-view/>
    </el-main>

  </el-container>
    </div>
</template>

<script>
export default {
    name: 'index',
    data() {
        return {

        };
    },
    methods: {
          handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }

    },
    //组件挂载
    components: {},
    //计算属性
    computed: {},
    //过滤器
    filters: {},
};
</script>

<style lang="scss" scoped>

</style>
